package com.daxia.bumall.common;

public enum HouseAreaTag {
	BelowSixty(0, "60m²以下", 0, 60), 
	BetweenSixtyToSeventy(1, "60m²-70m²", 60, 70),
	BelowOneHundred(2,"100m²以下",0,100),
	BetweenOneHundredToTwo(3,"100m²-200",100,200),
	BetweenTwoHundredToThree(4,"200m²-300m²",200,300);
	private int value;
	private String remark;
	private double minArea;
	private double maxArea;

	private HouseAreaTag(int value, String remark, double minArea, double maxArea) {
		this.value = value;
		this.remark = remark;
		this.minArea = minArea;
		this.maxArea = maxArea;
	}

	public int getValue() {
		return value;
	}

	public String getRemark() {
		return remark;
	}
	
	public double getMinArea() {
		return minArea;
	}
	
	public double getMaxArea() {
		return maxArea;
	}

	public static HouseAreaTag getByValue(int value) {
		for (HouseAreaTag o : HouseAreaTag.values()) {
			if (o.getValue() == value) {
				return o;
			}
		}
		return null;
	}
}
